/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved.
 */
package com.kaaction.modules.operate.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.operate.entity.ActivityChannel;
import com.kaaction.modules.operate.dao.ActivityChannelDao;

/**
 * 活动/渠道关联Service
 * @author zengbiao
 * @version 2017-04-12
 */
@Service
@Transactional(readOnly = true)
public class ActivityChannelService extends CrudService<ActivityChannelDao, ActivityChannel> {

	public ActivityChannel get(String id) {
		return super.get(id);
	}
	
	public List<ActivityChannel> findList(ActivityChannel activityChannel) {
		return super.findList(activityChannel);
	}
	
	public Page<ActivityChannel> findPage(Page<ActivityChannel> page, ActivityChannel activityChannel) {
		return super.findPage(page, activityChannel);
	}
	
	@Transactional(readOnly = false)
	public void save(ActivityChannel activityChannel) {
		super.save(activityChannel);
	}
	
	@Transactional(readOnly = false)
	public void delete(ActivityChannel activityChannel) {
		super.delete(activityChannel);
	}
	@Transactional(readOnly = false)
	public void deleteByActivityId(String activityId){
		super.dao.deleteByActivityId(activityId);
	}
	
	public List<ActivityChannel> findListByActivityId(String actvityId){
		return dao.findListByActivityId(actvityId);
	}
}